/*
 * @Author: your name
 * @Date: 2020-04-19 23:41:20
 * @LastEditTime: 2020-05-06 23:39:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \museweb\src\config\common.data.js
 */
export const pageAry = [
  {label: '首页', value: 'index', disabled: false},
  {label: '商城', value: 'mall', disabled: false},
  {label: '门店', value: 'store', disabled: true}
]

export const recommendType = [
  {label: '商品', value: 'product'},
  {label: '门店', value: 'store'},
  {label: '菜品', value: 'dish'},
  {label: '活动', value: 'activity'},
  {label: '兑换券', value: 'voucher'}
]

export const labelAry = [
  {label: '食', value: '食'},
  {label: '喝', value: '喝'},
  {label: '玩', value: '玩'}
]

export const weekDaysAry = [
  {
    label: '周日',
    value: 0
  },
  {
    label: '周一',
    value: 1
  },
  {
    label: '周二',
    value: 2
  },
  {
    label: '周三',
    value: 3
  },
  {
    label: '周四',
    value: 4
  },
  {
    label: '周五',
    value: 5
  },
  {
    label: '周六',
    value: 6
  }
]

export const getNameByPageValue = (value) => {
  return pageAry.filter(item => item.value === value)[0].label
}
